package com.swt.dao;


import com.swt.pojo.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author admin
 * @Classname swt
 * @Version 1.0.0
 * @Date 2022/9/7 17:11
 */
public interface TeacherMapper {
    List<Teacher> getTeacher();
    //获取指定老师下的所有学生及老师的信息
    Teacher getTeacher2(@Param("tid") int id );

    //通过子查询的方法获取指定老师下的所有学生及老师的信息
    Teacher getTeacher3(@Param("tid") int id );
}
